// 套餐列表数据
export const columns = [
  {
    title: '应用名称',
    dataIndex: 'appName',
    width: 120,
    key: 'appName',
  },
  {
    title: '架构',
    dataIndex: 'architecture',
    width: 100,
    key: 'architecture',
  },
  {
    title: '是否集成云商店',
    dataIndex: 'ifIntegrateCm',
    width: 100,
    customRender: ({ record }) => {
      return record.ifIntegrateCm ? '是' : '否';
    },
    key: 'ifIntegrateCm',
  },
  {
    title: '套餐类型',
    dataIndex: 'type',
    width: 100,
    key: 'type',
  },
  {
    title: '付费类型',
    dataIndex: 'paymentType',
    width: 100,
    key: 'paymentType',
  },
  {
    title: '多租模型',
    dataIndex: 'multiTenantModel',
    width: 100,
    key: 'multiTenantModel',
  },
  {
    title: '业务规格',
    dataIndex: 'specification',
    width: 100,
    key: 'specification',
  },
  {
    title: '数据库多租模式',
    dataIndex: 'dbMultiTenantMode',
    width: 100,
    key: 'dbMultiTenantMode',
  },
  {
    title: '应用多租模式',
    dataIndex: 'appMultiTenantMode',
    width: 100,
    key: 'appMultiTenantMode',
  },
  {
    title: '是否支持文件系统',
    dataIndex: 'ifSupportFileSystem',
    width: 80,
    customRender: ({ record }) => {
      return record.ifSupportFileSystem ? '是' : '否';
    },
    key: 'ifSupportFileSystem',
  },
  {
    title: '是否支持扩容',
    dataIndex: 'isExpand',
    width: 80,
    customRender: ({ record }) => {
      return record.isExpand ? '是' : '否';
    },
    key: 'isExpand',
  },
  {
    title: '是否支持License管理',
    dataIndex: 'ifSupportLicenseMgmt',
    width: 80,
    customRender: ({ record }) => {
      return record.ifSupportLicenseMgmt ? '是' : '否';
    },
    key: 'ifSupportLicenseMgmt',
  },
  {
    title: '云商店产品规格标识',
    dataIndex: 'skuCode',
    width: 100,
    key: 'skuCode',
  },
  {
    title: '状态',
    dataIndex: 'status',
    customRender: ({ record }) => {
      return record.status ? '已上架' : '未上架';
    },
    width: 100,
    key: 'status',
  },
  {
    title: '操作',
    dataIndex: 'operation',
    key: 'operation',
    fixed: 'right',
    width: 100,
  },
];

export interface SelectData {
  label?: string;
  value?: any;
}
